package com.weimob.mcloud.wechatwork.customer.service.user.module.bo.customer;

import java.io.Serializable;
import java.util.List;

/**
 * @Author yu liu  2021/10/31 11:28
 * Description
 * Version 1.0.0
 **/
public class DivisionBO implements Serializable {

    private static final long serialVersionUID = -8897511490344672207L;
    /**
     * 下级行政区
     */
    private DivisionBO subDivision;

    /**
     * 下级行政区列表
     */
    private List<DivisionBO> subDivisionList;

    /**
     * 主键（地址1.0兼容使用，该字段禁止任何服务使用）
     */
    private Integer id;

    /**
     * 行政区编码
     */
    private String code;

    /**
     * 是否为叶子节点
     */
    private boolean leaf;

    /**
     * 行政区划级别
     *
//     * @see com.weimob.saas.address.enums.AdministrativeLevelEnum
     */
    private Byte level;

    /**
     * 行政区名称
     */
    private String name;

    /**
     * 上级行政区编码
     */
    private String parentCode;

    /**
     * 邮政编码（地址1.0兼容使用）
     */
    private String postCode;

    /**
     * 拼音（地址1.0兼容使用）
     */
    private String pinYin;

    public Integer getId() {
        return id;
    }

    public DivisionBO getSubDivision() {
        return subDivision;
    }

    public void setSubDivision(DivisionBO subDivision) {
        this.subDivision = subDivision;
    }

    public List<DivisionBO> getSubDivisionList() {
        return subDivisionList;
    }

    public void setSubDivisionList(List<DivisionBO> subDivisionList) {
        this.subDivisionList = subDivisionList;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getPinYin() {
        return pinYin;
    }

    public void setPinYin(String pinYin) {
        this.pinYin = pinYin;
    }
}
